#include "parser.h"

int main() {
	string in_user;
	Parser P;
	P.Parse("ayah(X,Y) :- anak(Y,X), different(X,Y), 2<3.");
	P.Print();
	
	cout << "BACA FILE" << endl;
	
	list<string> l; 			// get a vector to hold your words
	 
	    ifstream fin("file.txt");
	 
	    string line; 					// to hold each line you read from the file
	    while( getline( fin, line ) )
	    {
	        istringstream iss( line ); 	// construct iss object
	        string word;
	        while( iss >> word ) 		// now get words on line into vector
	            				P.Clear();
			    cout << endl;
				P.Parse(word);
				P.Print();
	    }
	return 0;
}